The JQuery selector can be broadly divided into: the base selector, the hierarchy selector, the filter selector, and the form selector. The filter selector can be divided into: Simple filter selector, Content filter selector, visibility filter
First: Using CSS PropertiesCopy CodeThe code is as follows:var display =$ (' #id '). CSS (' Display ');if (display = = ' None ') {Alert ("You found out, I was hidden!") ");}The second type: using the jquery built-in selectorLet's say we have this
Many of the elements in the form are represented by, for example, Form.element[x];
The type of an element: the type of an element is represented by Element.type
With some of the above understanding, let's solve the first scenario in which a
Many elements in form are represented by form. Element [X;
The type of an element: the type of an element is expressed by element. type.
With some of the above knowledge, let's solve the problem of getting focus from the first non-hidden element:
Many elements in form are represented by form. element [x;The type of an element: the type of an element is expressed by element. type.With some of the above knowledge, let's solve the problem of getting focus from the first non-hidden element:First,
definitionTransmits state information about client/server interactions.Transmits state information about client/server interaction.NotesThis input type is not controlled by the user, but is sent the value of the Value property when the form is
$ ("# Myelement") Select the element whose ID value is equal to myelement. The id value cannot be repeated. Only one id value in the document is myelement, so the result is a unique element.$ ("Div") Select All Div tag elements and return an array
by Zhangxinxu from http://www.zhangxinxu.comThis address: http://www.zhangxinxu.com/wordpress/?p=2191First, CSS elements hiddenIn CSS, there are many ways to hide an element (meaning invisible to the naked eye), some occupy space, some do not occupy
Implement form Element value write-back Based on JQuery and jquery implement form Element
Form. jsp:
form write-back Name: region: --- select --- Fuzhou Xiamen Ningde gender: male female interest: AA BB CC DD EE FF
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.